<style>
.source_name{width:40%;}
td.source_name{text-align:left;}
.Tselect select{border:1px solid #CCCCCC;border-radius:5px;padding-left:5px;height: 30px;width: 100px;}
.Tselect select option{padding-left: 5px;}
.Tsearch input{height: 30px;border-radius: 5px;border: 1px solid #CCCCCC;padding-left: 5px;line-height: 30px;}
</style>
<div class="row">
	<div class="col-xs-6">
		<!-- 表示一个成功的或积极的动作 -->
		<a href="{:U('Wenku/index')}"><button type="button" class="btn btn-primary active">分享列表</button></a>
		<a href="{:U('Wenku/file')}"><button type="button" class="btn btn-primary">专辑文件列表</button></a>
		<a href="{:U('Wenku/setting')}"><button type="button" class="btn btn-primary">版块设置</button></a>
	</div>
	<section class="col-xs-3 Tselect">
		<form role="form">
		     <select name="sortT" class="option">
		     	<option value="default">默认</option>
				<option value="new" >最新</option>
				<option value="tCnt" >转存</option>
				<option value="dCnt" >下载</option>
				<option value="vCnt" >浏览</option>
				<option value="click" >点击</option>
			</select>
			<button type="submit" class="btn btn-default">排序</button>
		</form>
	</section>
		<section class="col-xs-3 Tsearch">
			<form role="form">
				<input type="text" name="kw" placeholder="资源名称" value="{$Think.get.kw}"/>    
				<button type="submit" class="btn btn-default">搜索</button>
			</form>
		</section>
</div>
<table class="table table-hover table-responsive">
   <thead>
      <tr>
         <th class="source_name">名称</th>
         <th>收录时间</th>
      </tr>
   </thead>
   <tbody>
   <volist name="data" id="data">
      <tr>
      	<td class="source_name">[{$data.id}]{$data.title}</td>
         <td>{$data.time|date="Y-m-d H:i:s",###}</td>
      </tr>
    </volist>
   </tbody>
</table>
{$page}
<script>
   $(document).ready(function(){
	   //删除会员
	   $(".delete_source").click(function(){
			if(!confirm('您确定要删除该资源吗？删除之后将不能再恢复，只能重新再收录。')) return false;
	   });
	   //默认选项
   		var sortT="{$Think.get.sortT}";
   		$option=$('.option option');
   		$.each($option, function() {    
   			if($(this).val() ==sortT){
   				$(this).attr('selected','selected');
   			}
   		});
   });
</script>







